<?php
require_once '/common/User.php';
require_once '/common/Upload.php';
require_once '/common/Factura.php';

$caminho =$_SERVER['DOCUMENT_ROOT'].'/../../';
require_once $caminho.'/Configuration/default_config.php';
$db->connect($__DBHOST, $__DBUSER, $__DBPASS, 'tuga_siga');

if(!isset($_SESSION['upload'])){
	$_SESSION['upload']=Upload::getInstance();
}
$upload=$_SESSION['upload'];

if(!isset($_SESSION['user'])){
	$_SESSION['user']=User::getInstance();
}
$user=$_SESSION['user'];

if(!isset($_SESSION['factura'])){
	$_SESSION['factura']=Factura::getInstance();
}
$factura=$_SESSION['factura'];